//
//  ImageViewCell.m
//  AnimationRecommend
//
//  Created by ljm on 2017/2/18.
//  Copyright © 2017年 ljm. All rights reserved.
//

#import "ImageViewCell.h"

@implementation ImageViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
   self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _imageview = [[UIImageView alloc]initWithFrame:AAdaptionRect(0, 0, kBaseWidth , kBaseWidth - 160)];
        [self.contentView addSubview:_imageview];
    }
    return self;
}

+(instancetype)loadCellWithTableView:(UITableView *)tableView {
    
    static NSString *cellIdentifier = @"imageCell";
    
    ImageViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    
    if (!cell) {
        cell = [[ImageViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
    }
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
